package com.dong.drool.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author zhaodongchao
 * @date 2019/9/18 10:54
 */
@ConfigurationProperties(prefix = DroolProperties.DROOL_PREFIX)
public class DroolProperties {
    public static final String DROOL_PREFIX = "drool";
    /**
     * 是否开启drool的自动配置功能
     */
    public boolean enabled = false ;
    /**
     * 是否调试模式，如果是就会打印drool工作引擎执行过程中的日志信息
     */
    public boolean debugFlag = true ;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public boolean isDebugFlag() {
        return debugFlag;
    }

    public void setDebugFlag(boolean debugFlag) {
        this.debugFlag = debugFlag;
    }
}
